<template>
  <div class="container">
    <CategoryComponent title="游戏">
      <template slot-scope="peiliyou">
        <ul>
          <li v-for="(item, index) in peiliyou.youxi" :key="index">
            {{ item }}
          </li>
        </ul>
      </template>
    </CategoryComponent>
    <CategoryComponent title="游戏">
      <template slot-scope="peiliyou">
        <ol>
          <li v-for="(item, index) in peiliyou.youxi" :key="index">
            {{ item }}
          </li>
        </ol>
      </template>
    </CategoryComponent>
    <CategoryComponent title="游戏">
      <template slot-scope="{youxi}">
        <h4 v-for="(item, index) in youxi" :key="index">{{ item }}</h4>
      </template>
    </CategoryComponent>
  </div>
</template>

<script>
import CategoryComponent from "./components/Category.vue";
// https://s3.ax1x.com/2021/01/16/srJlq0.jpg
// http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4
export default {
  name: "App",
  components: {
    CategoryComponent,
  },
  data() {
    return {};
  },
  mounted() {},
  beforeDestroy() {},
  created() {},
  destroyed() {},
  beforeRouteLeave(to, from, next) {
    // ...
    next(false);
  },
  methods: {},
  watch: {},
};
</script>

<style>
.container {
  display: flex;
  justify-content: space-around;
}
h4{text-align: center;}
</style>